﻿using CommunityToolkit.Mvvm.ComponentModel;
using Microsoft.UI.Xaml.Controls;
using System.Collections.ObjectModel;

namespace WinUITest.Pages
{
    [Menu("GridView测试")]
    public sealed partial class GridViewPage : Page
    {
        public GridViewViewModel ViewModel { get; } = new();
        public GridViewPage() => InitializeComponent();
    }
    public class GridViewViewModel : ObservableObject
    {
        public ObservableCollection<string> Items { get; set; } = [];
        public GridViewViewModel()
        {
            Items.Add("1");
            Items.Add("222222222222222222222222222222");
            Items.Add("3");
            Items.Add("4");
            Items.Add("5");
            Items.Add("6");
            Items.Add("7");
            Items.Add("8");
            Items.Add("9");
            Items.Add("10");
        }
    }
}
